﻿/*------------------------------------------------
// File Description: s_model_pack DataBase Entity
// Author:			 Crane
// Create Time:		 2021-04-27 22:30:57
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.OldMes.DataAccess.Entity
{
    /// <summary>
    /// 打包数据
    /// </summary>
    [Table("s_model_pack")]
    public class ModelPack
    {
        private string _solar_no = string.Empty;
        private string _work_order = string.Empty;
        private string _weld_machine = string.Empty;
        private string _salver_no = string.Empty;
        private string _pack_way = string.Empty;
        private string _set_op = string.Empty;
        private string _set_class = string.Empty;
        private string _set_no = string.Empty;
        private string _state = string.Empty;
        private string _subname = string.Empty;
        private string _liao_no = string.Empty;
        private string _out_order = string.Empty;
        private string _包装批次号 = string.Empty;

        #region Public Property

        ///<Summary>
        /// id
        ///</Summary>
        public int id { get; set; }

        ///<Summary>
        /// solar_no
        ///</Summary>
        public string solar_no
        {
            get { return string.IsNullOrWhiteSpace(_solar_no) ? string.Empty : _solar_no; }
            set { _solar_no = value; }
        }

        ///<Summary>
        /// work_order
        ///</Summary>
        public string work_order
        {
            get { return string.IsNullOrWhiteSpace(_work_order) ? string.Empty : _work_order; }
            set { _work_order = value; }
        }

        ///<Summary>
        /// in_time
        ///</Summary>
        public int? in_time { get; set; }

        ///<Summary>
        /// weld_machine
        ///</Summary>
        public string weld_machine
        {
            get { return string.IsNullOrWhiteSpace(_weld_machine) ? string.Empty : _weld_machine; }
            set { _weld_machine = value; }
        }

        ///<Summary>
        /// salver_no
        ///</Summary>
        public string salver_no
        {
            get { return string.IsNullOrWhiteSpace(_salver_no) ? string.Empty : _salver_no; }
            set { _salver_no = value; }
        }

        ///<Summary>
        /// pack_way
        ///</Summary>
        public string pack_way
        {
            get { return string.IsNullOrWhiteSpace(_pack_way) ? string.Empty : _pack_way; }
            set { _pack_way = value; }
        }

        ///<Summary>
        /// set_op
        ///</Summary>
        public string set_op
        {
            get { return string.IsNullOrWhiteSpace(_set_op) ? string.Empty : _set_op; }
            set { _set_op = value; }
        }

        ///<Summary>
        /// set_class
        ///</Summary>
        public string set_class
        {
            get { return string.IsNullOrWhiteSpace(_set_class) ? string.Empty : _set_class; }
            set { _set_class = value; }
        }

        ///<Summary>
        /// set_no
        ///</Summary>
        public string set_no
        {
            get { return string.IsNullOrWhiteSpace(_set_no) ? string.Empty : _set_no; }
            set { _set_no = value; }
        }

        ///<Summary>
        /// set_time
        ///</Summary>
        public DateTime? set_time { get; set; }

        ///<Summary>
        /// state
        ///</Summary>
        public string state
        {
            get { return string.IsNullOrWhiteSpace(_state) ? string.Empty : _state; }
            set { _state = value; }
        }

        ///<Summary>
        /// subname
        ///</Summary>
        public string subname
        {
            get { return string.IsNullOrWhiteSpace(_subname) ? string.Empty : _subname; }
            set { _subname = value; }
        }

        ///<Summary>
        /// liao_no
        ///</Summary>
        public string liao_no
        {
            get { return string.IsNullOrWhiteSpace(_liao_no) ? string.Empty : _liao_no; }
            set { _liao_no = value; }
        }

        ///<Summary>
        /// out_order
        ///</Summary>
        public string out_order
        {
            get { return string.IsNullOrWhiteSpace(_out_order) ? string.Empty : _out_order; }
            set { _out_order = value; }
        }

        ///<Summary>
        /// 包装批次号
        ///</Summary>
        public string 包装批次号
        {
            get { return string.IsNullOrWhiteSpace(_包装批次号) ? string.Empty : _包装批次号; }
            set { _包装批次号 = value; }
        }

        ///<Summary>
        /// 块位
        ///</Summary>
        public int? 块位 { get; set; }
        #endregion
    }

    public partial class OldMESContext
    {
        /// <summary>
        /// 打包数据
        /// </summary>
        public virtual DbSet<ModelPack> ModelPacks { get; set; }
    }
}